STEP 14: Let's try animating the mouth to open and close! This time, we will use an event.
An event in Codesters is a block of code that will only run when a certain action happens.
- Go to and drag Sprite Click to the bottom of the program.
- Assign the event to mouth by changing the variable sprite in sprite.event_click(click)¶ to mouth.
- Click Run and now try clicking on your mouth sprite! What happens?
To navigate the page using the TAB key, first press ESC to exit the code editor.